package com.gilight.base.admin.groupshopad;

import com.gilight.base.base.exception.ServiceException;
import com.gilight.base.dto.goods.AdminSpuDTO;
import com.gilight.base.dto.goods.SpuDTO;
import com.gilight.base.dto.goods.SpuTreeNodeDTO;
import com.gilight.base.model.Page;
import com.gilight.base.model.groupshopad.GroupShopAdDO;

import java.util.List;

/**管理员商品服务
 *
 */
public interface GroupshopAdService {

    /**
     * 创建
     * @param spuDTO    商品JSON数据
     * @return
     * @throws ServiceException
     */
    public String create(
            GroupShopAdDO spuDTO
           ) throws ServiceException;

    /**
     *                        编辑
     * @return
     * @throws ServiceException
     */
    public String edit(
            GroupShopAdDO groupShopAdDO) throws ServiceException;

    /**
     * 列表
     * @param page  页码 1
     * @param limit 页码长度 20
     * @param categoryId 搜索分类
     * @param title      搜索标题
     * @param barcode    商品条形码
     * @param status     商品状态
     * @param adminId    管理员Id
     * @return
     * @throws ServiceException
     */
    public Page<GroupShopAdDO> list(
            Integer page,
            Integer limit,
            Long categoryId,
            String title,
            String barcode,
            Integer status,
            Long zzjgId,
            Long adminId) throws ServiceException;

    /**
     *                        详情
     * @return
     * @throws ServiceException
     */
    public GroupShopAdDO detail(
            Long groupShopAdId
            ) throws ServiceException;


    /**
     * 删除
     * @return
     * @throws ServiceException
     */
    public String delete(
            Long groupShopAdId
            ) throws ServiceException;


    Object getGoodDinnerGroup(Long zzjgId);
}

